package cn.zjj.feignClient;

import cn.zjj.domain.User;
import cn.zjj.fallbackfactory.UserFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "user-server",fallbackFactory = UserFallbackFactory.class)
@RequestMapping("/user")
public interface UserFeignClient {

    @GetMapping("/getUser/{id}")
    User selectById(@PathVariable("id") Long id);


}
